0:00–0:10
Recap
0:10–0:35
Lecture
0:35–1:45
Lab 8-C
1:45–1:55
Bonus
1:55–2:00
Debrief
0:00 – 0:10Recap · 10 min
Day 2 review — from discovery to forensics
- Ask: "The eDiscovery search found Payroll-Q4.docx and related emails. Legal counsel asks: who created the external sharing link on that file, and exactly when? Can eDiscovery answer that question?" — no. eDiscovery finds the content but not the action trail. That's the audit log's job.
- Ask: "If you could see every action every user has taken in M365 over the past 180 days — file opens, emails sent, sharing links created, admin changes — what would that data let you do that DLP alerts and eDiscovery alone cannot?" — reconstruct intent. DLP catches the violation at the moment it happens. The audit log shows the behaviour before and after — the pattern that tells you whether it was accidental or deliberate.
- Frame: the audit log is the forensic backbone of M365 security. Days 1 and 2 covered preservation and collection. Day 3 covers investigation — using the audit log to answer "who, what, when, and from where" — and then Insider Risk Management, which uses the audit log signals continuously to detect risky behaviour patterns before they become incidents.
0:10 – 0:35Lecture · 25 min
Audit log structure, search operators, and Insider Risk Management
- The unified audit log — what it records — the audit log captures admin and user activity across all M365 workloads in a single searchable record. Coverage: Exchange (email sent, received, deleted, forwarded), SharePoint (file accessed, shared, deleted, moved, permission changes), OneDrive (same as SharePoint), Teams (message sent, deleted, channel created), Entra ID (sign-ins, MFA events, role changes, CA policy changes), Defender (alerts generated, cases created), Purview (DLP matches, eDiscovery cases, label changes). Retention: 180 days for E3/E5 (Standard); up to 10 years with Audit Premium (E5 add-on).
- Key audit record fields — every audit event contains: Date/Time (UTC), User (who performed the action), Activity (what they did — operation name), Item (what was acted on — file name, email subject, etc.), IP Address (where the action originated), Workload (Exchange/SharePoint/Teams/etc.), and Result (success/failure). These six fields are the foundation of every forensic timeline.
- Searching the audit log — navigate to Purview → Audit → New search. Filter by: date range, users, activity categories (all SharePoint activities, all Exchange activities, specific operations like "Created sharing invitation"), and file/folder keyword. Results are returned in reverse chronological order. Export to CSV for detailed analysis in Excel.
- High-value audit activities for security investigation — the most forensically valuable activities: SharingInvitationCreated (who created a sharing link and when), FileDownloaded (bulk downloads before a resignation), MailboxLogin (sign-ins to a mailbox from unexpected locations), Add member to role (privilege escalation), Set-MailboxFolderPermission (mailbox access delegation), UserLoggedIn (sign-in events with IP and device details), DLPRuleMatch (every DLP policy match with matched content metadata).
- Insider Risk Management — a Purview solution that uses ML to analyse audit log signals, DLP alerts, Defender for Endpoint telemetry, and HR data to identify users exhibiting risky behaviour patterns. Key policy templates: Data theft by departing users (triggered when an employee resignation is signalled via HR connector), Data leaks (detects bulk sharing or download outside normal behaviour), Security policy violations (Defender alerts correlated with data movement). Insider Risk is not about surveillance — it is about detecting specific high-risk scenarios with privacy-protective controls: users are anonymised in the portal until an alert is escalated by a reviewer.
- Insider Risk privacy controls — by default, users in Insider Risk Management alerts are shown as anonymised (User123, User456) rather than by name. A reviewer must explicitly approve revealing the user's identity. This two-step process protects employee privacy while still enabling investigation of genuine risk. The anonymisation is controlled in Insider Risk Management settings.
| Audit activity | What it tells you | Security use case |
| SharingInvitationCreated | Who created an external sharing link, what file, when, from what IP | Week 7 incident — identify who created the Payroll-Q4 link |
| FileDownloaded | Who downloaded what file, from which site, at what time | Insider risk — bulk downloads before resignation |
| DLPRuleMatch | Which DLP rule fired, for which user, what content was matched | Connect DLP alert to audit trail — build evidence timeline |
| Set-InboxRule | Email forwarding rule created (often first sign of account compromise) | BEC (Business Email Compromise) detection |
| UserLoggedIn | Sign-in event with IP, device, country, and success/failure | Impossible travel detection, credential stuffing detection |
| Add member to role | Admin role granted to a user account | Privilege escalation detection |
Instructor note: The most effective moment in this lecture is searching the audit log for SharingInvitationCreated events from the Finance site. This produces a concrete result — the exact timestamp and IP address of when the Payroll-Q4.docx external link was created, which user account created it, and whether the creation came from within the office IP range or from an unexpected location. Run this search live on the projector before students do it themselves.
0:35 – 1:45Guided lab · 70 min
Lab 8-C: Audit log reconstruction and Insider Risk Management setup
Students search the unified audit log to reconstruct the Week 7 incident timeline, export the audit results, analyse the forensic data, and configure an Insider Risk Management policy to detect data theft by departing users.
- Part 1 — Audit log investigation (40 min)
- Step 1 — Search for sharing events on the Finance site (10 min)
Navigate to purview.microsoft.com → Audit → New search.
· Date range: last 30 days (or adjust to cover the Week 7 lab date)
· Activities: search for Shared file, folder or site (SharePoint sharing activities)
· File, folder or site: type Payroll-Q4 in the search box
· Users: leave blank (all users)
Run the search. Look for SharingInvitationCreated or AnonymousLinkCreated events related to Payroll-Q4.docx.
Click a result to expand the details — record the IP address, timestamp, and user who created the sharing link.
- Step 2 — Search for all admin changes in the last 7 days (10 min)
Run a second audit search:
· Date range: last 7 days
· Activities: Role administration activities (all role changes)
· Users: your admin account
This surfaces the eDiscovery Manager role assignment from Lab 8-B. Verify it appears with the correct timestamp. This demonstrates that admin actions are auditable — even compliance-related admin actions leave a trail.
- Step 3 — Reconstruct the full incident timeline (15 min)
Build a comprehensive audit search covering all activities related to the Week 7 incident:
· Date range: the 48 hours around the Week 7 lab date
· Activities: All SharePoint file activities + All DLP activities
· Users: Priya Nair
Review the results. Assemble them into a chronological timeline in the lab handout table — file access, sharing link creation, DLP match events, and any other relevant activities.
Export the results to CSV: click Export → Download all results.
- Step 4 — Analyse the exported audit CSV (5 min)
Open the downloaded CSV in Excel (or review in the portal if download isn't immediately available).
Key columns: CreationTime, UserIds, Operations, ObjectId, ClientIPAddress, Workload, ResultStatus.
Sort by CreationTime ascending to see the full chronological sequence. Record the most significant events — the ones that tell the story of the incident.
- Part 2 — Insider Risk Management (30 min)
- Step 5 — Configure Insider Risk Management settings (10 min)
Navigate to purview.microsoft.com → Insider risk management → Settings.
Review the key settings:
· Privacy: confirm user anonymisation is On (users shown as User123 etc. until identity is approved)
· Policy indicators: review which signals are available — Office activities (file downloads, email forwards), Endpoint activities (USB transfers, cloud uploads from MDE), Security violation indicators (Defender alerts)
· Policy timeframes: review the default detection window (30 days of activity before an alert)
Record the settings without changing them yet.
- Step 6 — Create a Data Leaks insider risk policy (20 min)
Navigate to Insider risk management → Policies → + Create policy.
· Template: Data leaks
· Name: LL — Data Leaks Detection
· Users: All users
· Content to prioritise: add the Finance SharePoint site and the LL — Financial Data Protection DLP policy
· Policy indicators: enable — Office indicators: Downloading files from SharePoint/OneDrive, Sharing files outside the org; Endpoint indicators (if MDE is connected): Copy to USB removable storage
· Thresholds: use Microsoft recommended thresholds (default)
Save. The policy begins analysing user behaviour immediately, but alerts typically take 24 hours to surface from a new policy.
Record the policy configuration.
Instructor note: The audit log timeline reconstruction (Step 3) is the most forensically realistic exercise in the course. Students who carefully search for all Priya Nair activity around the Week 7 lab date will find: the file upload to SharePoint (FileUploaded), the sharing link creation (AnonymousLinkCreated or SharingInvitationCreated), the DLP rule match (DLPRuleMatch if DLP caught anything), and possibly the Threat Explorer soft-delete action from the Week 7 assessment remediation. Assembling these into a timeline demonstrates the full forensic capability of the audit log.
1:45 – 1:55Bonus · 10 min
⭐ Bonus: Departing user policy and audit alert policy
⭐ Bonus A — Data theft by departing users policy
- Create a second Insider Risk policy using the Data theft by departing users template. This template triggers monitoring when a resignation signal is received via HR data connector
- Without an HR connector (requires Azure setup beyond this course), configure the policy to use the manual trigger option: an admin can manually mark a user as a departing user to activate monitoring
- Manually mark James Okafor as a departing user (for lab purposes only — this is reversible). Observe what indicators the policy begins monitoring
- Lab Journal: what specific user activities would this policy flag as high-risk for a departing employee? Why is the 30-day lookback window before the departure signal important?
⭐ Bonus B — Audit alert policy
- Navigate to purview.microsoft.com → Audit → Alert policies → + New alert policy
- Create an alert that fires whenever an anonymous sharing link is created on any SharePoint site: Activity = AnonymousLinkCreated, Threshold = 1 event, Notify your admin email
- This transforms the audit log from a reactive forensic tool into a proactive alert system — you are notified the moment an external sharing link is created, rather than finding it during a post-incident investigation
- Lab Journal: what is the difference between a DLP alert (fires when sensitive content is shared) and an audit alert policy (fires when a specific activity occurs regardless of content)? When would you use each?
1:55 – 2:00Debrief · 5 min
Reflection & preview
- Ask: "The audit log showed that the Payroll-Q4 sharing link was created from an IP address you recognise. What if it had been created from a foreign IP address at 3am? What would that change about your investigation and your immediate response?" — it changes from a careless mistake to a potential account compromise. Immediate response: force password reset, revoke all sessions, check Entra ID sign-in logs for the suspicious sign-in, escalate to a security incident.
- Ask: "Insider Risk Management flags James Okafor as having downloaded 200 Finance files in one day. He is shown as User123 in the portal. What are the next steps?" — a reviewer examines the behaviour, decides whether to escalate, and approves revealing the identity. Only then is the user identified by name and investigation begins. This two-step process prevents false accusations.
- Preview Day 4: the audit trail is now documented. Day 4 goes back to sensitivity labels to complete the picture — adding encryption to the Confidential/Finance label so that a labelled file cannot be opened by unauthorised users even if it is shared externally, and configuring SharePoint library defaults so new Finance documents are automatically labelled.
Learning outcomes — by end of Day 3, students can…
Search the audit logRun targeted audit searches filtering by activity, user, date range, and file name
Read audit recordsExtract forensically relevant fields: timestamp, user, operation, item, IP address
Reconstruct a timelineAssemble multiple audit events into a chronological incident timeline
Export audit dataDownload audit results as CSV and identify key forensic columns
Configure Insider RiskCreate a Data Leaks insider risk policy with Finance site priority and MDE indicators
Explain privacy controlsDescribe user anonymisation in Insider Risk and the two-step identity reveal process
What you need ready
purview.microsoft.com accessible
Unified audit log enabled and populated (from Lab 7-C — 7+ weeks of data)
Week 7 lab activities available in audit log (sharing events, DLP matches)
Insider Risk Management licence — E5 includes it
MDE connector active (from Lab 7-B) for endpoint indicators